Skip to content

IAggregator interface

Defined in

Namespace: ReactiveUI.Primitives.Advanced Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Advanced.IAggregator<T1, T2, T3> Modifiers: public abstract

Summary

An immutable value-type accumulator for a single-source aggregate sink: each Add folds a value into the running state and returns the next accumulator, while Result yields the terminal value. Implemented as a readonly record struct so AggregateWitness can advance it through a constrained, devirtualized, allocation-free call rather than an interface or delegate dispatch.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Properties

NameSummary
ResultGets the terminal result computed from the values folded so far.

Methods

NameSummary
AddFolds value into the running state and returns the next accumulator.